package com.up.upzl.base.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module;

/**
 * 注册Hibernate5Module
 * 
 * @author geeks
 *
 */
@Configuration
public class JacksonConfig {

	/**
	 * 注册Hibernate5Module
	 * 
	 * @return Module
	 */
	@Bean
	public Module datatypeHibernateModule() {
		return new Hibernate5Module();
	}
}
